@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>股票列表管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">

                        <div class="row">

                            <div class="col-sm-5">
                                <#NameCon id="condition" name="名称/代码" placeholder="请输入股票名称或代码" />
                            </div>

                            <div class="col-sm-2">
                                <#SelectCon id="status" name="状态" >
                                    <option value="-1">全部</option>
                                    <option value="1">启用</option>
                                    <option value="0">禁用</option>
                                </#SelectCon>
                            </div>

                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Stock.search()"/>
                            </div>

                        </div>

                        <div class="hidden-xs" id="StockTableToolbar" role="group">
                            @if(shiro.hasPermission("/stock/add")){
                                <#button name="添加" icon="fa-plus" clickFun="Stock.openAddStock()"/>
                            @}
                            @if(shiro.hasPermission("/stock/update")){
                                <#button name="修改" icon="fa-edit" clickFun="Stock.openStockDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/stock/delete")){
                                <#button name="删除" icon="fa-remove" clickFun="Stock.delete()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/stock/unfreeze")){
                            <#button name="启用" icon="fa-check-circle" clickFun="Stock.unfreeze()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/stock/freeze")){
                                <#button name="禁用" icon="fa-warning" clickFun="Stock.freezeAccount()" space="true"/>
                            @}
                        </div>

                        <#table id="StockTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/stock/stock/stock.js"></script>
@}
